package com.xbongbong.pro.statistic.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * 开关分组
 *
 * @author zcp
 * @date 2019/1/10
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class ChartCategoryEnableDTO extends BaseDTO {

    private static final long serialVersionUID = 3530034275203727428L;
    /**
     * 分类ID
     */
    @NotNull(message = "{dto.msg.chartCategoryEnable.id.NotNull}")
    private Long id;
    /**
     * 1开启，0未开启；默认1，如果关闭分组则关闭下面所有图表--需提示用户
     */
    @NotNull(message = "{dto.msg.chartCategoryEnable.enable.NotNull}")
    @Range(min = 0, max = 1, message="{dto.msg.chartCategoryEnable.enable.Range}")
    private Integer enable;
}
